package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 制造执行MES-计划排产对象 mes_planned_production
 * 
 * @author qiezhi
 * @date 2023-12-17
 */
@Data
public class MesPlannedProductionVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String serialNo;

    /** 生产计划id */
    @Excel(name = "生产计划id")
    private Long productionPlanId;

    private String planNumber;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;
    private String  materialName;
    private String  materialModel;
    private String  materialSpecifications;
    private String  materialUnit;

    /** bomid */
    @Excel(name = "bomid")
    private Long bomId;
    private String bomName;

    /** 工厂id */
    @Excel(name = "工厂id")
    private Long factoryId;
    //生产线
    private String productionLine;
//    工艺
    private String technologyName;
    //项目
    private String projectName;

    /** 工艺id */
    @Excel(name = "工艺id")
    private Long technologyId;

    /** 待产数量 */
    @Excel(name = "待产数量")
    private Long producedQuantity;

    /** 已产数量 */
    @Excel(name = "已产数量")
    private Long quantityProduced;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date manufactureDate;

    /** 交货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /** 发布状态：0未发布，1已下发 */
    @Excel(name = "发布状态：0未发布，1已下发")
    private Long status;

    /** 领料状态：0未领料，1已领料 */
    @Excel(name = "领料状态：0未领料，1已领料")
    private Long pickingStatus;

}
